import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

export default defineConfig({
   plugins: [vue()],
  server: {
            proxy: {
                "/api": {
                    target: "http://localhost:8099", // 目标接口的域名
                    changeOrigin: true, // 是否跨域
                    rewrite: (path) => path.replace(/^\/api/, ""), // 重写路径
                },
            },
        },
});
